<?php
/**
 * Created by PhpStorm.
 * User: qzy008
 * Date: 2018/9/6
 * Time: 11:41
 */

namespace app\common\validate;


class PaginationValidate extends BaseValidate
{
    protected $rule = [
        'page' => 'require|isPositiveInteger',
        'size' => 'require|isPositiveInteger|max:50'
    ];

    protected $message = [
        'page' => '页码必须是正整数',
        'size' => '页数必须是正整数'
    ];
}
